package ltg.ibutton.main;

import javax.swing.SwingUtilities;

import ltg.ibutton.aquaroom.gui.desktop.SpectrometerGui;
import ltg.ibutton.aquaroom.gui.mockup.MockupGui;
import ltg.ibutton.aquaroom.gui.tablet.TabletGui;

public class LaunchAquaRoom {
	
	private static void createAndShowGUI(String[] args) {
    	if(args.length > 0 && args[0].equals("tablet"))
			new TabletGui();
		else if(args.length > 0 && args[0].equals("desktop"))
			new SpectrometerGui();
		else if(args.length > 0 && args[0].equals("mockup"))
			new MockupGui();
		else {
			System.err.println("NO GUI SELECTED!!!");
			System.exit(-1);
		}
    }
	
	public static void main(final String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI(args);
            }
        });
    }


	/*public static void main(String[] args) {
		if(args.length > 0 && args[0].equals("tablet"))
			new TabletGui();
		else if(args.length > 0 && args[0].equals("fluorometer"))
			new FluorometerGui();
		else {
			System.err.println("NO GUI SELECTED!!!");
			System.exit(-1);
		}
		//new MyProgressBar(null);
	}*/

}
